﻿using System;
using System.Collections.Generic;
using System.Text;

namespace GameClient
{
    public class TransModel
    {
        public byte type;//模块
        public int area;//区域
        public int command;//命令
        public object message;//内容
        public TransModel(byte type, int area, int command, object message=null)
        {
            this.type = type;
            this.area = area;
            this.command = command;
            this.message = message;
        }
        public TransModel()
        { 
        }

        public T GetMessage<T>() 
        {
            if (message == null)
            { return default(T); }
            return (T)message;
        }
    }

}
